import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(),
  routes: [
      {
        path: '/login',
        name: 'login',
        meta: {
          title: '登录',
          hidden: true
        },
        component: () => import('@/views/login/index.vue')
      },
      {
        path: '/',
        redirect(to) {
            return '/login'
        }
      }
  ]
})

export default router
